package com.easylinkin.linkappapi.childinspection.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.childinspection.entity.InspectionPointEntity;
import com.easylinkin.linkappapi.childinspection.entity.InspectionTaskEntity;
import com.easylinkin.linkappapi.childinspection.vo.BaseVo;
import com.easylinkin.linkappapi.childinspection.vo.InspectionTaskVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author linWenLe
 * @Date: 2024/4/3
 * @Description:    巡检任务
 */
public interface InspectionMapper extends BaseMapper<InspectionTaskEntity> {

    IPage<InspectionTaskEntity> getTaskList(Page page,@Param("model") InspectionTaskVo model);

    void insertTaskAndPoint(@Param("taskId") String taskId,@Param("pointId") String pointId);

    void deleteTaskAndPointByTaskId(String taskId);

    int selectListByTaskId(String taskId);

    IPage<InspectionTaskEntity> getHistoryTaskList(Page page, BaseVo customQueryParams);

    List<Map<String,Object>> selectPointListNew(String taskId);
}
